﻿package Message.Public
{
    import Framework.Serialize.*;

    public class SAutoArenaFightRole extends Object
    {
        public var entityId:SEntityId;
        public var name:String;
        public var career:int;
        public var sex:int;
        public var level:int;
        public var weapon:int;
        public var fashion:int;
        public var wing:int;
        public var combat:int;
        public var life:int;
        public var mana:int;
        public var buffs:Array;

        public function SAutoArenaFightRole()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            this.entityId.__write(param1);
            param1.writeString(this.name);
            param1.writeInt(this.career);
            param1.writeInt(this.sex);
            param1.writeInt(this.level);
            param1.writeInt(this.weapon);
            param1.writeInt(this.fashion);
            param1.writeInt(this.wing);
            param1.writeInt(this.combat);
            param1.writeInt(this.life);
            param1.writeInt(this.mana);
            SeqIntHelper.write(param1, this.buffs);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(param1);
            this.name = param1.readString();
            this.career = param1.readInt();
            this.sex = param1.readInt();
            this.level = param1.readInt();
            this.weapon = param1.readInt();
            this.fashion = param1.readInt();
            this.wing = param1.readInt();
            this.combat = param1.readInt();
            this.life = param1.readInt();
            this.mana = param1.readInt();
            this.buffs = SeqIntHelper.read(param1);
            return;
        }// end function

    }
}
